<?php $this->load->view('header', array('data' => $data));?>
<script type="text/javascript" src="/js/lib/jquery.pagination.js"></script>
<link href="/css/pagination.css" rel="stylesheet" type="text/css"> 
<div id="center">
	<div id="left_box">
		<div class="module"><div class="text">域名管理</div></div>
		<div class="sub_module">
		<ul class="sub_module">
		<?php foreach ($data['module'][$data['current']['module']]['sub_module'] as $v) { ?>
			<li <?php if ($v['ename'] == $data['current']['sub_module']) echo "class='current'"; ?> ><a href="<?php echo "/{$data['current']['module']}/{$v['ename']}";?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
		</ul>
		</div>
		<div class="desc_box1 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
		<div class="desc_box2 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
	</div>
	<div id="right_box">
		<form id="add_unit" method="post" action="/domain/unit_add/">
		<table class="add">
			<tr>
				<td class="col1">计费单元</td>
				<td class="col2"><input type="text" value="" name="unit" /></td>
				<td class="col3"><div class="unit_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">所属业务</td>
				<td class="col2">
					<select name="service_id">
						<option value="0">选择业务...</option>
						<?php foreach ($data['service'] as $v) {?>
						<?php echo "<option value='{$v['id']}'>{$v['service']}</option>";?>
						<?php } ?>
					</select>
				</td>
				<td class="col3"><div class="service_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">所属用户</td>
				<td class="col2">
					<select name="user_id">
						<option value="0">选择用户...</option>
						<?php foreach ($data['all_user'] as $v) {?>
						<option value="<?php echo $v['id']; ?>"><?php echo $v['username']; ?></option>
						<?php } ?>
					</select>
				</td>
				<td class="col3"><div class="user_msg"></td>
			</tr>
			<tr>
				<td class="col1">计费类型</td>
				<td class="col2">
					<input type="radio" checked="checked" name="charge_mode" value="1"/>流量
					<input type="radio" name="charge_mode" value="2"/>下载量
				</td>
				<td class="col3"><div id="charge_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">统计方法</td>
				<td class="col2">
					<input type="radio" checked="checked" name="fee_mode" value="1"/>A模式
					<input type="radio" name="fee_mode" value="2"/>B模式
					<input type="radio" name="fee_mode" value="3"/>C模式</td>
				<td class="col3"><div id="fee_mode_msg"></div></td>
			</tr>
			<tr><td colspan="3"><input type="submit" value="增加"/></td></tr>
		</table>
		</form>
		<table class="search">
			<tr>
				<td class="col1">所属业务</td>
				<td class="col2">
					<select class="service_id">
						<option value="0">所有服务</option>
						<?php foreach ($data['service'] as $v) {?>
						<?php echo "<option value='{$v['id']}'>{$v['service']}</option>";?>
						<?php } ?>
					</select>
				</td>
				<td class="col3">所属用户</td>
				<td class="col4">
					<select class="user_id">
						<option value="0">所有用户</option>
						<?php foreach ($data['all_user'] as $v) {?>
						<option value="<?php echo $v['id']; ?>"><?php echo $v['username']; ?></option>
						<?php } ?>
					</select>
				</td>
				<td>
					<input type="button" id="search_button" value="查找" />
				</td>
			</tr>
		</table>
		<div id="search_result">
		</div>
		<div id="links"></div>
	</div>
</div>
<?php $this->load->view('footer') ?>
